package com.hnit.web.DTO;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

    @Data
    @NoArgsConstructor
    public class OrdersItemsDTO implements Serializable {
        @JsonSerialize(using = ToStringSerializer.class)
        private Long orderItemId; // '订单详情id',
        @JsonSerialize(using = ToStringSerializer.class)
        private Long orderId; // '订单id',
        @JsonSerialize(using = ToStringSerializer.class)
        private Long productId; // '商品id',
        private Integer quantity; // '数量',
        private Double price; // '商品单价',

        // ⭐ 需要添加的商品显示信息
        private String productName; // 商品名称
        private String mainImage; // 商品主图URL
        private String detail; // 商品描述（可选）
    }